namespace ReservoirModel
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("TBRecord")]
    public partial class TBRecord
    {
        public int Id { get; set; }

        [Required]
        [StringLength(10)]
        public string UserId { get; set; }

        [Required]
        [StringLength(50)]
        public string District { get; set; }

        [Required]
        [StringLength(20)]
        public string Name { get; set; }

        public double? Area { get; set; }

        public double? Storage { get; set; }

        [StringLength(100)]
        public string Functional { get; set; }

        public double Maximum { get; set; }

        public double WaterLevel { get; set; }

        [StringLength(100)]
        public string Remarks { get; set; }

        [Column(TypeName = "datetime2")]
        public DateTime CreationTime { get; set; }

        public virtual TBUser TBUser { get; set; }
    }
}
